{% extends 'base.html' %}

{% load static %}

{% block title %}
{{ user.first_name }}
{% endblock %}

{% block css %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static 'css/accounts.css' %}">
{% endblock %}

{% block content %}
<div class="columns" style="margin-top: 16px;" id="navbar">
    <div class="column col-6 col-lg-8 col-md-10 col-sm-12 col-lg-auto col-md-auto col-sm-auto col-mx-auto">
		<form class="form-horizontal" method="post" enctype="multipart/form-data" action="/accounts/update/">{% csrf_token %}
			
			{% include 'user-block.html' with exclude_username=True %}

			{% if user == profileuser %}
			<div class="form-group">
				<div class="col-3">
				</div>
				<div class="col-9">
					<button class="btn btn-primary float-right" type="submit">保存</button>
					<a class="btn btn-link float-right" href="#" onclick="javascript:window.history.back()">返回</a>
				</div>
			</div>
			{% endif %}
		</form>
	</div>}
</div>
{% endblock %}

{% block javascript %}
{{ block.super }}
<script type="text/javascript" src="{% static 'js/accounts.js' %}"></script>
{% endblock %}